package com.nbwyctf.helper.mapper;

import com.nbwyctf.helper.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chetaifu
 */
@Mapper
public interface UserMapper {
    /**
     * 插入并获得id
     */
    int insert(User user);

    Long searchAllByEmailAndPhone(@Param("email") String email, @Param("phone") String phone);

    List<User> selectUsersByEmails(@Param("emailList") List<String> emailList);

    void updateUser(User user);

    void deleteUserById(@Param("id") Long id);
}
